<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + Vue + TS</title>
  </head>
  <body>
    <div id="loading" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: #fff; z-index: 9999;">
      <div class="shape-container">
        <div class="shape"></div>
        <div class="ground-line"></div>
      </div>
    </div>
    <style>
      .shape-container {
        height: 150px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        position: relative;
      }

      .ground-line {
        position: absolute;
        bottom: 0;
        width: 400px;
        height: 2px;
        background: linear-gradient(to right, transparent, #ddd, transparent);
        border-radius: 2px;
        animation: lineStretch 2.4s ease-in-out infinite;
      }

      @keyframes lineStretch {
        0%, 33.33%, 66.67%, 100% {
          width: 80px;
        }

        16.67%, 50%, 83.33% {
          width: 200px;
        }
      }

      .shape {
        width: 60px;
        height: 60px;
        background-color: #FFC107;
        border-radius: 10px;
        animation: jump 2.4s ease-in-out infinite;
        position: relative;
        z-index: 1;
      }

      @keyframes jump {
        0%, 100% {
          transform: translateY(0) rotate(0deg);
          background-color: #FFC107;
          border-radius: 10px;
          clip-path: none;
        }

        16.67% {
          transform: translateY(-80px) rotate(180deg);
        }

        33.33% {
          transform: translateY(0) rotate(360deg);
          background-color: #F44336;
          border-radius: 50%;
          clip-path: none;
        }

        50% {
          transform: translateY(-80px) rotate(540deg);
        }

        66.67% {
          transform: translateY(0) rotate(720deg);
          background-color: #2196F3;
          border-radius: 0;
          clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        }

        83.33% {
          transform: translateY(-80px) rotate(900deg);
        }
      }
    </style>
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>
